//
//  PB3TableViewCell.m
//  UI_元旦豆瓣小集合
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "PB3TableViewCell.h"

@implementation PB3TableViewCell
- (void)dealloc {
    [_cinemaName release];
    [_address release];
    [_telephone retain];
    [_img release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self win2];
    }return self;
}
- (void) win2 {
    self.img = [[UIImageView alloc] init];
    [self.contentView addSubview:_img];
    [_img release];

  
    self.cinemaName = [[UILabel alloc] init];
    [_img addSubview:_cinemaName];
    [_cinemaName release ];
    
    self.address = [[UILabel alloc] init];
    [self.contentView addSubview:_address];
    [_address release];
    
    self.telephone = [[UILabel alloc] init];
    [self.contentView addSubview:_telephone];
    [_telephone release];
    
        
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _img.frame = CGRectMake(20, 10, 330, 200);
    _img.layer.cornerRadius = 10;


    _img.backgroundColor = [UIColor grayColor];
    
    _cinemaName.frame = CGRectMake(5, 20, 300, 40);
//    _cinemaName.backgroundColor = [UIColor grayColor];
    //    _label.backgroundColor = [UIColor redColor];
    
    _address.frame = CGRectMake(45, 90, 300, 60);
    _address.numberOfLines = 3;
//    _address.backgroundColor = [UIColor yellowColor];
    //    _label2.backgroundColor = [UIColor yellowColor];
    _telephone.frame = CGRectMake(45, 140, 300, 40);
//    _telephone.backgroundColor = [UIColor blackColor];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
